package com.gusto.engine.semsim.service.impl;

import com.gusto.engine.beans.model.Res;
import com.gusto.engine.neighborhood.aspects.StoreDistanceAspect;
import com.gusto.engine.semsim.exceptions.ConfigException;
import com.gusto.engine.semsim.exceptions.SimilarityException;
import com.gusto.engine.semsim.service.SimilarityService;

/**
 * <p>Do not use.
 * This is an implementation of {@link SimilarityService} for test purpose.
 * It has been included here to get the {@link StoreDistanceAspect} included.</p>
 * 
 * @author amokrane.belloui@gmail.com
 *
 */
@Deprecated
public class SimilarityServiceMockImpl implements SimilarityService {
	
	//private Logger log = Logger.getLogger(getClass());
	
	@Deprecated
	public SimilarityServiceMockImpl() {
		super();
	}
	
	public void checkDefinitionChanged() throws ConfigException {
		contextConfigChanged("testContext");
	}
	
	public void contextConfigChanged(String context) { 
		
	}
	
	public Double getSimilarity(String context, Res resource1, Res resource2) throws SimilarityException {
		return 0.6;
	}
	
}
